package com.example.base.base

import android.os.Bundle
import androidx.viewbinding.ViewBinding
import com.example.base.base.util.inflateBindingWithGeneric

open class BaseBindingActivity<VB : ViewBinding> : BaseActivity() {

    private var _binding: VB? = null
    val binding: VB get() = _binding!!

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        _binding = inflateBindingWithGeneric(layoutInflater)
        setContentView(binding.root)
    }

}